﻿/*********************************************************************************
**                                                                              **
**  Copyright (C) 2024 LiLong                                                   **
**  This file is part of GnssLogs.                                              **
**                                                                              **
**  GnssLogs is free software: you can redistribute it and/or modify            **
**  it under the terms of the GNU Lesser General Public License as published by **
**  the Free Software Foundation, either version 3 of the License, or           **
**  (at your option) any later version.                                         **
**                                                                              **
**  GnssLogs is distributed in the hope that it will be useful,                 **
**  but WITHOUT ANY WARRANTY; without even the implied warranty of              **
**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               **
**  GNU Lesser General Public License for more details.                         **
**                                                                              **
**  You should have received a copy of the GNU Lesser General Public License    **
**  along with GnssLogs.  If not, see <https://www.gnu.org/licenses/>.          **
**********************************************************************************/
#pragma once

#include "Commons.h"
#include "FormatMacro.h"
#include "LogHeader.h"

#include <string>

namespace GnssLogs
{
namespace ALIGNBSLNENU
{
struct Data
{
    LogHeader::Data header;
    SolutionStatus solStatus;
    PositionOrVelocityType posType;
    double east;
    double north;
    double up;
    float eastSigma;
    float northSigma;
    float upSigma;
    std::string roverID;
    std::string baseID;
    uint8_t svs;
    uint8_t solnSVs;
    uint8_t obs;
    uint8_t multi;
    uint8_t reversed;
    ExtendedSolutionStatus extSolStat;
    GalileoAndBeiDouSignalUsedMasks galileoAndBeiDouSigMask;
    GPSAndGLONASSSignalUsedMasks gpsAndGLONASSSigMask;
    uint32_t crc32;
};
} // namespace ALIGNBSLNENU
} // namespace GnssLogs
GNSSLOGS_DECLARE_FORMATTER(GnssLogs::ALIGNBSLNENU::Data)